<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <div id="root">
            <h1 id="h1">{{meg}}</h1>
            <h1 class='age'>{{age}}</h1>
            <label for="">年龄：</label><input type="text" v-model='age'>
        </div>
        <script src="./vue.js"></script>
        <script>
            const meg="hello word"
            new Vue({
                el:'#root',
                data:{
                    meg,
                    age:5
                }
            })
            
        </script>
    </body>
</html>
